import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';
import { UEditorModule } from 'ngx-ueditor';

@NgModule({
    declarations: [AppComponent],
    imports: [
        BrowserModule,
        FormsModule,
        AppRoutingModule,
        SharedModule,
        UEditorModule.forRoot({
            js: [
                `./assets/libs/ueditor/ueditor.config.js`,
                `./assets/libs/ueditor/ueditor.all.js`,
            ],
            // 默认前端配置项
            options: {
                UEDITOR_HOME_URL: './assets/libs/ueditor/',
            },
        }),
    ],
    providers: [],
    bootstrap: [AppComponent],
})
export class AppModule {}
